home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16432 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: richardc.demon.co.uk!Richard
  2. From: Richard Clarke <Richard@richardc.demon.co.uk>
  3. Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.lang.c++
  4. Subject: Re: Controls in non-dialog (mfc)
  5. Date: Wed, 10 Apr 1996 19:58:08 +0100
  6. Organization: None
  7. Distribution: world
  8. Message-ID: <pmWx$CAATAbxEwDp@richardc.demon.co.uk>
  9. References: <4k81um$s8t@pub.news.uk.psi.net>
  10. NNTP-Posting-Host: richardc.demon.co.uk
  11. X-NNTP-Posting-Host: richardc.demon.co.uk
  12. MIME-Version: 1.0
  13. X-Newsreader: Turnpike Version 1.12 <G2pIptdb7w+Z8vip1Rvj+G91cN>
  14.  
  15. In article <4k81um$s8t@pub.news.uk.psi.net>, andrew oxenburgh <andrew.ox
  16. enburgh@private.nethead.co.uk> writes
  17. >sj2393@ansys.com (Steve Jones) writes:
  18. >> How in MFC does one go about embedding a control within a
  19. >> window that is not a dialog box?  For example, I can
  20. >> construct and Create() a CEdit object within a CView derived
  21. >> class, but nothing (apparently) happens.  I knew when I
  22. >> tried it something wasn't quite right; I wasn't sure what to
  23. >> use for the nID.  Is it necessary to use a resource?
  24. >> 
  25. >> 
  26. >> steve
  27. >> 
  28. >> stevejones@ansys.com
  29. >> 
  30. >
  31. >
  32. >Steve, I'm an OWL programmer, not an MFC Programmer, but I'd say 
  33. >you also have to Show(SW_SHOW) to the CEdit.  ???
  34.  
  35. Why not try the CFormView class? This is based on a dialog template,
  36. very nice and simple to use.
  37.  
  38. Good luck
  39.  
  40. -- 
  41. Richard Clarke
  42.